/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
using System.Collections.Generic;
using Newtonsoft.Json;

using Aliyun.Acs.Core;
using Aliyun.Acs.Core.Http;
using Aliyun.Acs.Core.Transform;
using Aliyun.Acs.Core.Utils;
using Aliyun.Acs.linkedmall.Transform;
using Aliyun.Acs.linkedmall.Transform.V20180116;

namespace Aliyun.Acs.linkedmall.Model.V20180116
{
    public class NotifyWithholdFundRequest : RpcAcsRequest<NotifyWithholdFundResponse>
    {
        public NotifyWithholdFundRequest()
            : base("linkedmall", "2018-01-16", "NotifyWithholdFund", "linkedmall", "openAPI")
        {
            if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
            {
                this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Endpoint.endpointMap, null);
                this.GetType().GetProperty("ProductEndpointType").SetValue(this, Endpoint.endpointRegionalType, null);
            }
        }

		private long? amount;

		private string payTypes;

		private string tenantOrderId;

		private string requestId;

		private string operationDate;

		private string channelId;

		public long? Amount
		{
			get
			{
				return amount;
			}
			set	
			{
				amount = value;
				DictionaryUtil.Add(QueryParameters, "Amount", value.ToString());
			}
		}

		public string PayTypes
		{
			get
			{
				return payTypes;
			}
			set	
			{
				payTypes = value;
				DictionaryUtil.Add(QueryParameters, "PayTypes", value);
			}
		}

		public string TenantOrderId
		{
			get
			{
				return tenantOrderId;
			}
			set	
			{
				tenantOrderId = value;
				DictionaryUtil.Add(QueryParameters, "TenantOrderId", value);
			}
		}

		public string RequestId
		{
			get
			{
				return requestId;
			}
			set	
			{
				requestId = value;
				DictionaryUtil.Add(QueryParameters, "RequestId", value);
			}
		}

		public string OperationDate
		{
			get
			{
				return operationDate;
			}
			set	
			{
				operationDate = value;
				DictionaryUtil.Add(QueryParameters, "OperationDate", value);
			}
		}

		public string ChannelId
		{
			get
			{
				return channelId;
			}
			set	
			{
				channelId = value;
				DictionaryUtil.Add(QueryParameters, "ChannelId", value);
			}
		}

		public override bool CheckShowJsonItemName()
		{
			return false;
		}

        public override NotifyWithholdFundResponse GetResponse(UnmarshallerContext unmarshallerContext)
        {
            return NotifyWithholdFundResponseUnmarshaller.Unmarshall(unmarshallerContext);
        }
    }
}
